//导入组件
import Home from '@/components/home/home'
import Center from '@/components/center/center'
import UserFeedback from '@/components/center/userFeedback'
import Archivecenter from '@/components/reference/archivecenter'
import Startcheck from '@/components/reference/startcheck'
import Authorize from '@/components/reference/authorize'
import ArchieveDetails from '@/components/reference/archieveDetails'
import Login from '@/components/center/login'

import Worker from '@/components/workspace/worker'
import EntryPass from '@/components/user/entryPass'
import LookPass from '@/components/user/lookPass'
import Sign from '@/components/user/sign'
import setPass from '@/components/user/setPass'
import singIden from '@/components/user/singIden'
import agree from '@/components/user/agree'
import UserAbout from '@/components/center/userAbout'
import UserSet from '@/components/center/userSet'
import UserFriends from '@/components/center/userFriends'
import UserAuthentication from '@/components/center/userAuthentication'
import UserInfo from '@/components/center/userInfo'

import secretList from '@/components/secret/secretList'
import addSecret from '@/components/secret/addSecret'
import SecretDetail from '@/components/secret/secretDetail'
import addAssess from '@/components/secret/addAssess'
import Search from '@/components/secret/search'

import welfare from '@/components/welfare/welfare'
//福利详情页
import welfareDetail from '@/components/welfare/welfareDetail'
import Abnoemal from '@/components/reference/abnoemal'

import UserRecharge from '@/components/center/userRecharge'
import UserFill from '@/components/center/userFill'
import UserConsumption from '@/components/center/userConsumption'
import UserParticulars from '@/components/center/userParticulars'
import UserSpace from '@/components/center/userSpace'
import UserSpaceExpand from '@/components/center/userSpaceExpand'
import UserCertification from '@/components/certification/userCertification'
import UserCertificationState from '@/components/certification/userCertificationState'
import UserEnterprise from '@/components/certification/userEnterprise'
import UserUnderreview from '@/components/certification/userUnderreview'
import SetPermissions from '@/components/center/permissions/setPermissions'
import AddWarden from '@/components/center/permissions/addWarden'
import EditWarden from '@/components/center/permissions/editWarden'
import BalanceStateTrue from '@/components/center/balanceStateTrue'
import BaclanceStateFalse from '@/components/center/baclanceStateFalse'

import Mydetail from '@/components/workspace/mydetail'
import Myinfo from '@/components/workspace/myinfo'
import PaySearchFalse from '@/components/reference/paySearchFalse'
import PaySearchTrue from '@/components/reference/paySearchTrue'

import SelfService from '@/components/reference/selfService'
import ArchiveSeaech from '@/components/reference/archiveSeaech'
import Relief from '@/components/user/relief'
import NewPay from '@/components/center/newPay'
import Hunter from '@/components/workspace/hunter'

//过渡页面PageTransition
import PageTransition from '@/App'


export default [
  {
    path: '/',
    component: PageTransition, // 引入页面切换组件
    children: [{
      path: '',
      component: Home,
      children: [{
        path: '',
        component: Worker
      },{
        path: 'center',
        meta: { auth: true },
        component: Center
      },{
        path: 'worker',
        component: Worker
      },{
        name: '_archivecenter',
        path: 'archivecenter',
        meta: { auth: true },
        component: Archivecenter
      },{
        name: '_search',
        path: 'secret',
        meta: { auth: true ,state:true},
        component: secretList
      },{
        path: 'welfare',
        component: welfare
      }]
    },{
      path:'/login',
      component:Login
    },{
      path:'/entrypass',
      component:EntryPass
    },{

      path:'/lookiden',
      component:LookPass
    },{
      path:'/sign',
      component:Sign
    },{
      path:'/setpass',
      component:setPass
    },{
      path:'/singiden',
      component:singIden
    },{
      path:'/agree',
      component:agree
    },{
      path:'/startcheck',
      component:Startcheck
    },{
      path:'/addsecret',
      component:addSecret
    },
      {
        path:'/userFeedback',
        component:UserFeedback
      },
      {
        path:'/userAbout',
        component:UserAbout
      },
      {
        path:'/userSet',
        component:UserSet
      },
      {
        path:'/userFriends',
        component:UserFriends
      },
      {
        path:'/userAuthentication',
        component:UserAuthentication
      },
      {
        path:'/userInfo',
        component:UserInfo
      },
      {
        path:'/startcheck',
        component:Startcheck
      },
      {
        name:'secret-detail',
        path:'/secretDetail',
        component:SecretDetail,
        meta: { keepAlive: true }
      },
      {
        path:'/authorize',
        component:Authorize
      },
      {
        path:'/archieveDetails',
        component:ArchieveDetails
      },
      {
        path:'/addassess',
        component:addAssess
      },
      {
        path:'/abnoemal',
        component:Abnoemal
      },
      { // me余额充值
        path: '/userRecharge',
        component: UserRecharge
      },
      { // me填写发票
        path: '/userFill',
        component: UserFill
      },
      {// me消费明细
        path: '/userConsumption',
        component: UserConsumption
      },
      {// me消费明细2
        path: '/userParticulars',
        component: UserParticulars
      },
      {// me资料空间
        path: '/userSpace',
        component: UserSpace
      },
      {// me空间扩展
        path: '/userSpaceExpand',
        component: UserSpaceExpand
      },
      {// me用户认证
        path: '/userCertification',
        component: UserCertification
      },
      {// me企业认证
        path: '/userEnterprise',
        component: UserEnterprise
      },
      {// me认证状态/驳回
        path: '/userCertificationState',
        component: UserCertificationState
      },
      {// me认证状态/审核中
        path: '/userUnderreview',
        component: UserUnderreview
      },
      { // 设置权限
        path: '/setPermissions',
        component: SetPermissions
      },
      { // 新增管理员
        path: '/addWarden',
        component: AddWarden
      },
      { // 编辑管理员
        path: '/editWarden',
        component: EditWarden
      },
      { // 充值状态成功
        path: '/balanceStateTrue',
        component: BalanceStateTrue
      }, { // 充值状态失败
        path: '/baclanceStateFalse',
        component: BaclanceStateFalse
      },
      { // 新支付
        path: '/newPay',
        component: NewPay
      },
      {
        name: '_hunter',
        path: '/hunter',
        component: Hunter
      },
      {
        path: '/myinfo',
        component: Myinfo
      },
      {
        path: '/mydetail',
        component: Mydetail
      },
      {
        path: '/search',
        component: Search
      },
      {
        path: '/selfService',
        component: SelfService
      },
      {//跳转背景搜索页面
        path: '/archiveSeaech',
        component: ArchiveSeaech
      },
      {//免责声明welfareDetail
        path: '/relief',
        component: Relief
      },
      {  //背调支付成功
        path: '/paySearchFalse',
        component: PaySearchFalse
      },
      {  //背调支付失败
        path: '/paySearchTrue',
        component: PaySearchTrue
      },
      {//福利详情
        path: '/welfareDetail',
        component: welfareDetail
      }
    ]
  }





]
